package com.wangxinenpu.springbootdemo.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wangxinenpu.springbootdemo.dataobject.dto.function.FunctionTreeVo;
import com.wangxinenpu.springbootdemo.dataobject.dto.role.RoleDto;
import com.wangxinenpu.springbootdemo.dataobject.dto.role.RoleFunDto;
import com.wangxinenpu.springbootdemo.dataobject.model.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author =
 * @since 2024-06-14
 */
public interface RoleService extends IService<Role> {

	R< Page< Role>> pageList( RoleDto dto );

	R< Boolean> delete( List< String> ids );

	R< Boolean> saveOrUpdate( RoleDto dto );

	R< Boolean> configurationFunction( RoleFunDto dto );

	R < List<FunctionTreeVo> > treeFun( String id );
}
